import http from "@/utils/http"
const prefixUrl = "/order"
export default {
    role: {
        query: "GET:/order",
        create: "POST:/order",
        select: "GET:/order/:id",
        update: "PUT:/order/:id",
        export: 'GET:/order/ordercsv'
    },
    query(params) {
        return http.get(prefixUrl, params)
    },
    create(params) {
        return http.post(prefixUrl, params)
    },
    select(id) {
        return http.get(prefixUrl + "/" + id)
    },
    update(id, params) {
        return http.put(prefixUrl + "/" + id, params)
    },
    export (params = {}) {
        return http.get('/order/ordercsv', params)
    },


}